package com.pagoda.nerp.trade.dao;

import com.pagoda.nerp.trade.entity.PurGoodsRequest;

import java.util.List;
import java.util.Map;

public interface PurGoodsRequestDao {
    int deleteByPrimaryKey(Integer goodsRequestId);

    int insert(PurGoodsRequest record);

    PurGoodsRequest selectByPrimaryKey(Integer goodsRequestId);

    List<PurGoodsRequest> selectAll();
    
    List<PurGoodsRequest> selectLatest();

    int updateByPrimaryKey(PurGoodsRequest record);
    
    List<PurGoodsRequest> selectAllByConditon(Map map);
    
    PurGoodsRequest selectOneByCondition(Map map);
    
    int updateStatus(String goodsRequestCode);
}